package com.topvision.feign;

import com.topvision.config.HystrixCredentialsContext;
import com.topvision.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 使用@FeignClient("topvision-cloud-provider")注解绑定topvision-cloud-provider服务，还可以使用url参数指定一个URL。
 * @author
 *
 *
 *
 *
 */
@FeignClient(name = "topvision-cloud-provider"/*,configuration = {HystrixCredentialsContext.class}*/)
public interface UserFeignClient {
  @RequestMapping("/{id}")
  public User findByIdFeign(@RequestParam("id") Long id);
}